﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using document_manage.文件分类;
namespace document_manage.添加文档

{
    public delegate void MyDelegate(string text);

    /// <summary>
    /// Add.xaml 的交互逻辑
    /// </summary>
    public partial class Add : Window
    {
        public event MyDelegate MyEvent;
        public Add(string text)
        {
            InitializeComponent();
            this.textBox.Text = text;
        }
        private void btnChange_Click(object sender, EventArgs e)
        {

            MyEvent(this.textBox.Text);
            this.Close();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
